using System;
using System.Xml.Linq;

namespace NetQueryLib.Expressions
{
	internal class ElementNameSelectorExpression : SelectorExpression
	{
		public ElementNameSelectorExpression(string selector)
			: base(selector)
		{
		}

		public override bool Filter(XElement element)
		{
			return element.Name.LocalName == Selector;
		}
	}
}